<?php

namespace App\Http\Controllers\Admin;

use App\Model\StoreModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;


class StoreController extends Controller
{
	//云仓库列表
	public function index(Request $request){
		$list = StoreModel::where(function ($query) {
			if (request()->keywords) {
				$query->where('uid', request()->keywords);
			}
		})
			->orderBy('id','desc')->paginate(15);
		return  view('admin.store.index',compact('list','request'));
	}

}